/**
 * ports或者texts是否可见
 * @param {Array} ports
 * @param {boolean} visible
 */
function showPorts(ports, visible) {
  ports.forEach((port) => {
    port.style.visibility = visible ? "visible" : "hidden";
  });
}

export { showPorts };
